package cn.dengta.webapp.user.entity;

import java.math.BigDecimal;

import cn.dengta.context.model.Language;
import cn.dengta.context.model.Member;
import cn.dengta.context.web.RequestContextImpl;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@TableName("tr_proxy_account")
public class ProxyAccount extends MemberContent implements Member {

	private BigDecimal discount;

	@Override
	public boolean canLoginBackstage() {
		return false;
	}

	@Override
	public Language getLanguage() {
		return RequestContextImpl.doGetLanguage(RequestContextImpl.get().getRequest());
	}

}
